package at.ac.tuwien.dse.health.reservation;

import java.io.Serializable;

/**
 * Contains information about a new {@link at.ac.tuwien.dse.health.entity.SurgerySlot SurgerySlot} reservation.
 *
 * @author Bernhard Nickel
 * @author Gregor Schauer
 * @author Dominik Strasser
 */
public class ReservationConfirmation implements Serializable {
	private ReservationRequest request;
	private Long slotId;

	public ReservationConfirmation(ReservationRequest request, Long slotId) {
		this.request = request;
		this.slotId = slotId;
	}

	public ReservationRequest getRequest() {
		return request;
	}

	/**
	 * Returns the ID of the {@link at.ac.tuwien.dse.health.entity.SurgerySlot SurgerySlot} reserved.
	 *
	 * @return the ID of the slot
	 */
	public Long getSlotId() {
		return slotId;
	}
}
